/**
 * Copyright (c)  HeiFeiDeFengZheng.Co.Ltd. All rights reserved.
 **/
package com.hongfu.adruid.controller;

import com.hongfu.adruid.entity.User;
import com.hongfu.adruid.mapper.DataMapper;
import com.hongfu.adruid.service.IDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述：
 *
 * @author huifeidefengzheng
 * @since 2023/9/6 0006
 *
 **/
@Slf4j
@RestController
@RequestMapping("/data")
public class DataController {

    @Autowired
    private IDataService dataService;

    @GetMapping("/user")
    public String getUsers() {
        log.info("111111111111111111");
        List<String> list = new ArrayList<>();
        list.add("item1");
        list.add("item2");
        list.add("item3");
        //return list;
        String s = dataService.queryUserInfo();
        log.info("{}", s);
        return s;
    }

}
